package com.yanqu.road.entity.log.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_feast_state_upgrade", desc = "山河乐宴-称号", autoSave = true, dataUpload = true, eventName = "shfete_titupg", uploadCk = true)
public class LogFeastStateUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "升级前境界id")
    private int beforeStateId;

    @FieldTypeAnnotation(desc = "升级后境界id", dataAttribute = "shfete_afttit")
    private int afterStateId;

    @FieldTypeAnnotation(desc = "升级时仙力", dataAttribute = "shfete_ability")
    private long powerVal;

    @FieldTypeAnnotation(desc = "是否渡劫", dataAttribute = "shfete_upgrade")
    private boolean isSuccess;

    @FieldTypeAnnotation(desc = "消耗道具", insert = false, dataAttribute = "shfete_usegood")
    private String consume = "";

    @FieldTypeAnnotation(desc = "消耗修为", insert = false, dataAttribute = "shfete_useknow")
    private long consumeXiu;

    public LogFeastStateUpgrade(long userId, int activityId, int beforeStateId, int afterStateId, long powerVal, boolean isSuccess) {
        this.userId = userId;
        this.activityId = activityId;
        this.beforeStateId = beforeStateId;
        this.afterStateId = afterStateId;
        this.powerVal = powerVal;
        this.isSuccess = isSuccess;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getBeforeStateId() {
        return beforeStateId;
    }

    public void setBeforeStateId(int beforeStateId) {
        this.beforeStateId = beforeStateId;
    }

    public int getAfterStateId() {
        return afterStateId;
    }

    public void setAfterStateId(int afterStateId) {
        this.afterStateId = afterStateId;
    }

    public long getPowerVal() {
        return powerVal;
    }

    public void setPowerVal(long powerVal) {
        this.powerVal = powerVal;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getConsume() {
        return consume;
    }

    public void setConsume(String consume) {
        this.consume = consume;
    }

    public long getConsumeXiu() {
        return consumeXiu;
    }

    public void setConsumeXiu(long consumeXiu) {
        this.consumeXiu = consumeXiu;
    }
}
